package com.us.proframe.controller;

import com.us.proframe.utils.RandomValidateCodeUtil;
import org.apache.http.HttpResponse;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 处理验证码的业务逻辑
 * date:2017/9/7
 * time:14:42
 * author:LYH
 */
@Controller
@RequestMapping("/validatecode/")
public class ValidateCodeContraller {


    @RequestMapping("/image")
    public void getImage(HttpServletRequest request, HttpServletResponse response){
        RandomValidateCodeUtil randomValidateCodeUtil = new RandomValidateCodeUtil();
        randomValidateCodeUtil.getRandcode(request,response);
    }


}
